package com.baylor.server.business.common;

import org.springframework.data.annotation.Id;

import java.util.Calendar;

public class BaseDomain {

    @Id
    protected String id;

    protected long created = Calendar.getInstance().getTimeInMillis();

    protected long updated = created;

    public BaseDomain() {
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public long getCreated() {
        return created;
    }

    public void setCreated(long created) {
        this.created = created;
    }

    public long getUpdated() {
        return updated;
    }

    public void setUpdated(long updated) {
        this.updated = updated;
    }
}
